<#include "../../page.ftl" />
<#include "../../display.ftl" />
<table class="table table-datatable table-gray">
    <thead>
    <tr>
        <th style="width: 35px;"><input id="checkAll" type="checkbox" value=""></th>
        <th>卡号</th>
        <th>客户姓名</th>
        <th>种类</th>
        <th>产品名称</th>
        <th>开卡日期</th>
        <th>到期日期</th>
        <th>引荐人</th>
        <th>促会人</th>
        <th>分管人</th>
        <th>副会</th>
        <th>上次产品名称</th>
        <th>上次分管人</th>
        <th>到期类型</th>
    </tr>
    </thead>
    <tbody>
    <#if ykBillsTable.rows??>
        <#list ykBillsTable.rows as ykBill>
        <tr>
            <td><input name="ids" type="checkbox" value="${ykBill.id?c}"></td>
            <td>${ykBill.cardId!''}</td>
            <td>${ykBill.customerName!''}</td>
            <td>
                <@display list=vipTypeList value="${ykBill.vipType!''}"/>
            </td>
            <td>${ykBill.productName!''}</td>
            <td>${(ykBill.startDate?string("yyyy-MM-dd"))!''}</td>
            <td>${(ykBill.endDate?string("yyyy-MM-dd"))!''}</td>
            <td>
                <#if ykBill.healthYj??>
                    <#list ykBill.healthYj?split(",") as values >
                        <#list usersList as user>
                            <#if user.loginName == "${values!''}">
                            ${user.userName},
                            </#if>
                        </#list>
                    </#list>
                </#if>
            </td>
            <td>
                <#if ykBill.healthCh??>
                    <#list ykBill.healthCh?split(",") as values >
                        <#list usersList as user>
                            <#if user.loginName == "${values!''}">

                            ${user.userName},
                            </#if>
                        </#list>
                    </#list>
                </#if>
            </td>
            <td>${ykBill.userLoginName!''}</td>
            <td>${ykBill.vipFh!''}</td>
            <td>${ykBill.upProductName!''}</td>
            <!-- <td>
                <#if ykBill.upHealthYj??>
                    <#list ykBill.upHealthYj?split(",") as values >
                        <#list usersList as user>
                            <#if user.loginName == "${values!''}">

                            ${user.userName},
                            </#if>
                        </#list>
                    </#list>
                </#if>
            </td>
            <td>
                <#if ykBill.upHealthCh??>
                    <#list ykBill.upHealthCh?split(",") as values >
                        <#list usersList as user>
                            <#if user.loginName == "${values!''}">

                            ${user.userName},
                            </#if>
                        </#list>
                    </#list>
                </#if>
            </td>-->
            <td>${ykBill.upUserNameFg!''}</td>
            <td>
                <@display list=overdueTypeList value="${ykBill.overdueType!''}"/>
            </td>
            <td style="display:none ">
                <a class="btn btn-green btn-radio nopadding" onclick="return popAddOrModify(${ykBill.id?c});"
                   title="编辑"><i class="fa fa-edit"></i></a>
        </tr>
        </#list>
    </#if>
    </tbody>
</table>
<#if ykBillsTable??>
    <@page table=ykBillsTable formId="search_ykBill_table"/>
</#if>